/**
 * Created by wd14931 on 2017/6/5.
 */
var tpl = require('./../../template/base/org/list.html');

var operate = {
    'account': '账号',
    'userName': '用户名',
    'ps': '密码',
    'department': '部门',
    'title': '职位',
    'fullName': '姓名',
    'tel': '电话',
    'address': '地址'
};
var userList = [
    {
        'account': '13468234734',
        'userName': 'fesourceMan',
        'ps': 'WEDSAfdsfdsfd',
        'department': '大度假研发',
        'title': '研发主管',
        'fullName': '小明',
        'tel': '18723328282',
        'address': '工业园区裕新路188号'
    },{
        'account': '23468234734',
        'userName': 'fesourceMan',
        'ps': 'WEDSAfdsfdsfd',
        'department': '大度假研发',
        'title': '研发主管',
        'fullName': '小明',
        'tel': '18723328282',
        'address': '工业园区裕新路188号'
    },{
        'account': '3468234734',
        'userName': 'fesourceMan',
        'ps': 'WEDSAfdsfdsfd',
        'department': '大度假研发',
        'title': '研发主管',
        'fullName': '小明',
        'tel': '18723328282',
        'address': '工业园区裕新路188号'
    },{
        'account': '4468234734',
        'userName': 'fesourceMan',
        'ps': 'WEDSAfdsfdsfd',
        'department': '大度假研发',
        'title': '研发主管',
        'fullName': '小明',
        'tel': '18723328282',
        'address': '工业园区裕新路188号'
    },{
        'account': '53468234734',
        'userName': 'fesourceMan',
        'ps': 'WEDSAfdsfdsfd',
        'department': '大度假研发',
        'title': '研发主管',
        'fullName': '小明',
        'tel': '18723328282',
        'address': '工业园区裕新路188号'
    },{
        'account': '6468234734',
        'userName': 'fesourceMan',
        'ps': 'WEDSAfdsfdsfd',
        'department': '大度假研发',
        'title': '研发主管',
        'fullName': '小明',
        'tel': '18723328282',
        'address': '工业园区裕新路188号'
    },{
        'account': '73468234734',
        'userName': 'fesourceMan',
        'ps': 'WEDSAfdsfdsfd',
        'department': '大度假研发',
        'title': '研发主管',
        'fullName': '小明',
        'tel': '18723328282',
        'address': '工业园区裕新路188号'
    },{
        'account': '83468234734',
        'userName': 'fesourceMan',
        'ps': 'WEDSAfdsfdsfd',
        'department': '大度假研发',
        'title': '研发主管',
        'fullName': '小明',
        'tel': '18723328282',
        'address': '工业园区裕新路188号'
    },{
        'account': '93468234734',
        'userName': 'fesourceMan',
        'ps': 'WEDSAfdsfdsfd',
        'department': '大度假研发',
        'title': '研发主管',
        'fullName': '小明',
        'tel': '18723328282',
        'address': '工业园区裕新路188号'
    },{
        'account': '103468234734',
        'userName': 'fesourceMan',
        'ps': 'WEDSAfdsfdsfd',
        'department': '大度假研发',
        'title': '研发主管',
        'fullName': '小明',
        'tel': '18723328282',
        'address': '工业园区裕新路188号'
    },{
        'account': '93468234734',
        'userName': 'fesourceMan',
        'ps': 'WEDSAfdsfdsfd',
        'department': '大度假研发',
        'title': '研发主管',
        'fullName': '小明',
        'tel': '18723328282',
        'address': '工业园区裕新路188号'
    },{
        'account': '103468234734',
        'userName': 'fesourceMan',
        'ps': 'WEDSAfdsfdsfd',
        'department': '大度假研发',
        'title': '研发主管',
        'fullName': '小明',
        'tel': '18723328282',
        'address': '工业园区裕新路188号'
    },{
        'account': '93468234734',
        'userName': 'fesourceMan',
        'ps': 'WEDSAfdsfdsfd',
        'department': '大度假研发',
        'title': '研发主管',
        'fullName': '小明',
        'tel': '18723328282',
        'address': '工业园区裕新路188号'
    },{
        'account': '103468234734',
        'userName': 'fesourceMan',
        'ps': 'WEDSAfdsfdsfd',
        'department': '大度假研发',
        'title': '研发主管',
        'fullName': '小明',
        'tel': '18723328282',
        'address': '工业园区裕新路188号'
    },{
        'account': '93468234734',
        'userName': 'fesourceMan',
        'ps': 'WEDSAfdsfdsfd',
        'department': '大度假研发',
        'title': '研发主管',
        'fullName': '小明',
        'tel': '18723328282',
        'address': '工业园区裕新路188号'
    },{
        'account': '103468234734',
        'userName': 'fesourceMan',
        'ps': 'WEDSAfdsfdsfd',
        'department': '大度假研发',
        'title': '研发主管',
        'fullName': '小明',
        'tel': '18723328282',
        'address': '工业园区裕新路188号'
    }
];
module.exports = {
    template: tpl,
    data: function(){
        return {name: 'user-management', data: userList, operate: operate};
    },
    methods:{
        createPerson: function(){

        },
        deletePerson: function(index){
        },
        sortList: function(key){
            console.log(this.data.length)
            console.log(11111111111, key)
        }
    }
};